<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<form id="pagerForm" method="post" action="/admin/user/passwordLog">
	<input type="hidden" name="pageNum" value="${pageTurn.page }" />
	<input type="hidden" name="numPerPage" value="${pageTurn.pageSize }" />
	<input type="hidden" value="${eqUserId}" name="eqUserId" />
	<input type="hidden" value="${eqAccountName}" name="eqAccountName" />
	<input type="hidden" value="${eqPhone}" name="eqPhone" />
	<input type="hidden" value="${eqEmail}" name="eqEmail" />
	<input type="hidden" value="${gtConfirmDate}" name="gtConfirmDate" />
	<input type="hidden" value="${ltConfirmDate}" name="ltConfirmDate" />
	<input type="hidden" value="${eqConfitmWay }" name="eqConfitmWay" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/admin/user/passwordLog" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					用户ID: <input type="text" value="${eqUserId}" name="eqUserId"></input>
				</td>
				<td>
					用户名: <input type="text" value="${eqAccountName}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="eqAccountName" ></input>
				</td>
				<td>
					手机号码: <input type="text" value="${eqPhone}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="eqPhone" ></input>
				</td>
				<td>
					邮     箱: <input type="text" value="${eqEmail}" onBlur="$(this).val(jQuery.trim($(this).val()));" name="eqEmail" ></input>
				</td>
			</tr>
			<tr>
				<td>
					<table><tr><td>
					修改方式: </td><td><select class="combox" name="eqConfirmWay">
							<option value="">---请选择---</option>
							<c:forEach items="${modifyWayMap }" var="modify">
								<option value="${modify.key }" ${ modify.key== eqConfirmWay ? 'selected=selected' : ''}>${modify.value }</option>
							</c:forEach>
							</select></td></tr></table>
				</td>
				<td colspan="2">
					<table><tr>
					<td>修改日期:</td>
					<td>
						<input type="text" value="${gtConfirmDate}" name="gtConfirmDate" class="date" dateFmt="yyyy-MM-dd HH:mm:ss" readonly="true" style="float:left;"/>
						<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
					</td>
					<td>~</td>
					<td>
						<input type="text" value="${ltConfirmDate}" style="float:left;" name="ltConfirmDate" class="date" dateFmt="yyyy-MM-dd HH:mm:ss" readonly="true"/>
						<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
					</td></tr></table>
				</td>
				<td></td>
				<td><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></td>
			</tr>
		</table>
	</div>
	</form>

</div>
<div class="pageContent" layoutH="100%">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th>序号</th>
				<th>用户ID</th>
				<th>用户名</th>
				<th>邮箱</th>
				<th>手机</th>
				<th>修改方式</th>
				<th>修改ip记录</th>
				<th>修改时间</th>
			</tr>
		</thead>
		<tbody>
				<c:choose>
					<c:when test="${null==userPasswordModifyLogList||userPasswordModifyLogList.isEmpty()}">
						<tr class="tatr2">
							<td colspan="11" align="center">暂无数据</td>
						</tr>
					</c:when>
					<c:otherwise>
						<c:forEach var="userpassword" items="${userPasswordModifyLogList}" varStatus="status">
							<tr target="sid_user_password" rel="${userpassword.id}">
								<td>${status.index+1 }</td>
								<td>${userpassword.userId}</td>
								<td>${userpassword.accountName}</td>	
								<td>${userpassword.isEmailValid == 1 ? userpassword.email : ''}</td>
								<td>${userpassword.isPhoneValid == 1 ? userpassword.phone : ''}</td>
								<td>${modifyWayMap.get(userpassword.confirmWay)}</td>
								<td>${userpassword.confirmIp}</td>
								<td>${userpassword.confirmDate}</td>
							</tr>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</tbody>
		</table>
</div>
	<div style="clear:both"></div>
	<div class="panelBar">
	    <%@ include file="/inc/admin_pagination.jsp" %>
	</div>